import 'package:flutter/material.dart';
import 'package:flutter_tutorial/official_samples/base_sample_stateless_widget.dart';

class ElevatedButtonWidget extends BaseSampleStatelessWidget {
  static String name = 'ElevatedButton';
  static String route = '/ui/ElevatedButton';

  @override
  Widget buildBody(BuildContext context) {
    //<code>
    return Column(
      mainAxisSize: MainAxisSize.min,
      children: <Widget>[
        const SizedBox(height: 30),
        ElevatedButton(
          onPressed: () {},
          child: const Text('Click me'),
        ),
        const SizedBox(height: 30),
        ElevatedButton(
          style: ElevatedButton.styleFrom(
            backgroundColor: Colors.blue,
            shape: StadiumBorder(),
            padding: const EdgeInsets.all(0.0),
          ),
          onPressed: () {},
          child: const Text('Click me'),
        ),
      ],
    );
    //<code>
  }

  @override
  String getFilePath() {
    return 'lib/official_samples/raised_button_widget.dart';
  }

  @override
  String getTitle() {
    return name;
  }

  @override
  String getDemoUrl() {
    return '';
  }
}
